package com.yuanqi.dz.dc.info;

import java.io.Serializable;

import com.yuanqi.dz.dc.util.ReadProperPre;

public class Main  implements Serializable{

	private static final long serialVersionUID = 1L;
	private   String preSourceType="";
	private String  preAddress="";
	private String preLocalPath ="";
	private String preFileName="";
	private String preDzDateFormat="";
	private String predzDateAddday="";
	private String preFtpPort ="";
	private String  preUsername="";
	private String prePassword = "";
	private String  preRemotePath="" ;
	
	private   String realSourceType="";
	private String  realAddress="";
	private String realLocalPath ="";
	private String realFileName="";
	private String realDzDateFormat="";
	private String realdzDateAddday="";
	private String realFtpPort ="";
	private String  realUsername="";
	private String realPassword = "";
	private String  realRemotePath="" ;
  
	
	public String getPreSourceType() {
		return preSourceType;
	}



	public void setPreSourceType(String preSourceType) {
		this.preSourceType = preSourceType;
	}



	public String getPreAddress() {
		return preAddress;
	}



	public void setPreAddress(String preAddress) {
		this.preAddress = preAddress;
	}



	public String getPreLocalPath() {
		return preLocalPath;
	}



	public void setPreLocalPath(String preLocalPath) {
		this.preLocalPath = preLocalPath;
	}



	public String getPreFileName() {
		return preFileName;
	}



	public void setPreFileName(String preFileName) {
		this.preFileName = preFileName;
	}



	public String getPreDzDateFormat() {
		return preDzDateFormat;
	}



	public void setPreDzDateFormat(String preDzDateFormat) {
		this.preDzDateFormat = preDzDateFormat;
	}



	public String getPredzDateAddday() {
		return predzDateAddday;
	}



	public void setPredzDateAddday(String predzDateAddday) {
		this.predzDateAddday = predzDateAddday;
	}



	public String getPreFtpPort() {
		return preFtpPort;
	}



	public void setPreFtpPort(String preFtpPort) {
		this.preFtpPort = preFtpPort;
	}



	public String getPreUsername() {
		return preUsername;
	}



	public void setPreUsername(String preUsername) {
		this.preUsername = preUsername;
	}



	public String getPrePassword() {
		return prePassword;
	}



	public void setPrePassword(String prePassword) {
		this.prePassword = prePassword;
	}



	public String getPreRemotePath() {
		return preRemotePath;
	}



	public void setPreRemotePath(String preRemotePath) {
		this.preRemotePath = preRemotePath;
	}



	public String getRealSourceType() {
		return realSourceType;
	}



	public void setRealSourceType(String realSourceType) {
		this.realSourceType = realSourceType;
	}



	public String getRealAddress() {
		return realAddress;
	}



	public void setRealAddress(String realAddress) {
		this.realAddress = realAddress;
	}



	public String getRealLocalPath() {
		return realLocalPath;
	}



	public void setRealLocalPath(String realLocalPath) {
		this.realLocalPath = realLocalPath;
	}



	public String getRealFileName() {
		return realFileName;
	}



	public void setRealFileName(String realFileName) {
		this.realFileName = realFileName;
	}



	public String getRealDzDateFormat() {
		return realDzDateFormat;
	}



	public void setRealDzDateFormat(String realDzDateFormat) {
		this.realDzDateFormat = realDzDateFormat;
	}



	public String getRealdzDateAddday() {
		return realdzDateAddday;
	}



	public void setRealdzDateAddday(String realdzDateAddday) {
		this.realdzDateAddday = realdzDateAddday;
	}



	public String getRealFtpPort() {
		return realFtpPort;
	}



	public void setRealFtpPort(String realFtpPort) {
		this.realFtpPort = realFtpPort;
	}



	public String getRealUsername() {
		return realUsername;
	}



	public void setRealUsername(String realUsername) {
		this.realUsername = realUsername;
	}



	public String getRealPassword() {
		return realPassword;
	}



	public void setRealPassword(String realPassword) {
		this.realPassword = realPassword;
	}



	public String getRealRemotePath() {
		return realRemotePath;
	}



	public void setRealRemotePath(String realRemotePath) {
		this.realRemotePath = realRemotePath;
	}



	public static long getSerialversionuid() {
		return serialVersionUID;
	}



	public Main() {
		super();
	}
	
	

	public Main(String preSourceType, String preAddress, String preLocalPath,
			String preFileName, String preDzDateFormat, String predzDateAddday,
			String preFtpPort, String preUsername, String prePassword,
			String preRemotePath, String realSourceType, String realAddress,
			String realLocalPath, String realFileName, String realDzDateFormat,
			String realdzDateAddday, String realFtpPort, String realUsername,
			String realPassword, String realRemotePath) {
		super();
		this.preSourceType = preSourceType;
		this.preAddress = preAddress;
		this.preLocalPath = preLocalPath;
		this.preFileName = preFileName;
		this.preDzDateFormat = preDzDateFormat;
		this.predzDateAddday = predzDateAddday;
		this.preFtpPort = preFtpPort;
		this.preUsername = preUsername;
		this.prePassword = prePassword;
		this.preRemotePath = preRemotePath;
		this.realSourceType = realSourceType;
		this.realAddress = realAddress;
		this.realLocalPath = realLocalPath;
		this.realFileName = realFileName;
		this.realDzDateFormat = realDzDateFormat;
		this.realdzDateAddday = realdzDateAddday;
		this.realFtpPort = realFtpPort;
		this.realUsername = realUsername;
		this.realPassword = realPassword;
		this.realRemotePath = realRemotePath;
	}


	public Main init(String mercharnum){
		String pre_source_type=null,   pre_address=null,  pre_local_path =null,  pre_fileName=null,  pre_dz_date_format=null;
		String  pre_dz_date_addday=null, pre_ftp_port =null,   pre_username=null, pre_password = null,  pre_remotePath=null ;
		
		String real_source_type=null,  real_address=null, real_local_path =null, real_fileName=null, real_dz_date_format=null;
		String real_dz_date_addday=null,real_ftp_port =null,  real_username=null,real_password = null, real_remotePath=null ;
		String  is_private=ReadProperPre.getProperties("is_private");
		if(null!=is_private && "0".equals(is_private)){
			String  is_private_mercharnum=ReadProperPre.getProperties("is_private_"+mercharnum);
			if(null!=is_private_mercharnum && is_private_mercharnum.equals("1")){
				 pre_source_type=ReadProperPre.getProperties("pre_source_type_"+mercharnum);
				 pre_address=ReadProperPre.getProperties("pre_ftp_ip_"+mercharnum);
				 pre_local_path=ReadProperPre.getProperties("pre_local_path_"+mercharnum);
				 pre_fileName=ReadProperPre.getProperties("pre_fileName_"+mercharnum);
				 pre_dz_date_format=ReadProperPre.getProperties("pre_dz_date_format_"+mercharnum);
				 pre_dz_date_addday=ReadProperPre.getProperties("pre_dz_date_addday_"+mercharnum);
				 pre_ftp_port=ReadProperPre.getProperties("pre_ftp_port_"+mercharnum);
				 pre_username=ReadProperPre.getProperties("pre_ftp_username_"+mercharnum);
				 pre_password=ReadProperPre.getProperties("pre_ftp_password_"+mercharnum);
				 pre_remotePath=ReadProperPre.getProperties("pre_ftp_filepath_"+mercharnum);
				 
				 real_source_type=ReadProperPre.getProperties("real_source_type_"+mercharnum);
				 real_address=ReadProperPre.getProperties("real_ftp_ip_"+mercharnum);
				 real_local_path=ReadProperPre.getProperties("real_local_path_"+mercharnum);
				 real_fileName=ReadProperPre.getProperties("real_fileName_"+mercharnum);
				 real_dz_date_format=ReadProperPre.getProperties("real_dz_date_format_"+mercharnum);
				 real_dz_date_addday=ReadProperPre.getProperties("real_dz_date_addday_"+mercharnum);
				 real_ftp_port=ReadProperPre.getProperties("real_ftp_port_"+mercharnum);
				 real_username=ReadProperPre.getProperties("real_ftp_username_"+mercharnum);
				 real_password=ReadProperPre.getProperties("real_ftp_password_"+mercharnum);
				 real_remotePath=ReadProperPre.getProperties("real_ftp_filepath_"+mercharnum);
				 
			}else{
				pre_source_type=ReadProperPre.getProperties("pre_source_type");
				pre_address=ReadProperPre.getProperties("pre_ftp_ip");
				pre_local_path=ReadProperPre.getProperties("pre_local_path");//����Ŀ¼
				pre_fileName=ReadProperPre.getProperties("pre_fileName");// �ļ����
				pre_dz_date_format=ReadProperPre.getProperties("pre_dz_date_format");//�����ļ�ʱ���ʽ
				pre_dz_date_addday=ReadProperPre.getProperties("pre_dz_date_addday");  
				pre_ftp_port=ReadProperPre.getProperties("pre_ftp_port");
				pre_username=ReadProperPre.getProperties("pre_ftp_username");
				pre_password=ReadProperPre.getProperties("pre_ftp_password");
				pre_remotePath=ReadProperPre.getProperties("pre_ftp_filepath");
				
				 real_source_type=ReadProperPre.getProperties("real_source_type");
				 real_address=ReadProperPre.getProperties("real_ftp_ip");
				 real_local_path=ReadProperPre.getProperties("real_local_path");
				 real_fileName=ReadProperPre.getProperties("real_fileName");
				 real_dz_date_format=ReadProperPre.getProperties("real_dz_date_format");
				 real_dz_date_addday=ReadProperPre.getProperties("real_dz_date_addday");
				 real_ftp_port=ReadProperPre.getProperties("real_ftp_port");
				 real_username=ReadProperPre.getProperties("real_ftp_username");
				 real_password=ReadProperPre.getProperties("real_ftp_password");
				 real_remotePath=ReadProperPre.getProperties("real_ftp_filepath");
			}
		}else{
			 pre_source_type=ReadProperPre.getProperties("pre_source_type_"+mercharnum);
			 pre_address=ReadProperPre.getProperties("pre_ftp_ip_"+mercharnum);
			 pre_local_path=ReadProperPre.getProperties("pre_local_path_"+mercharnum);
			 pre_fileName=ReadProperPre.getProperties("pre_fileName_"+mercharnum);
			 pre_dz_date_format=ReadProperPre.getProperties("pre_dz_date_format_"+mercharnum);
			 pre_dz_date_addday=ReadProperPre.getProperties("pre_dz_date_addday_"+mercharnum);
			 pre_ftp_port=ReadProperPre.getProperties("pre_ftp_port_"+mercharnum);
			 pre_username=ReadProperPre.getProperties("pre_ftp_username_"+mercharnum);
			 pre_password=ReadProperPre.getProperties("pre_ftp_password_"+mercharnum);
			 pre_remotePath=ReadProperPre.getProperties("pre_ftp_filepath_"+mercharnum);
			 
			 real_source_type=ReadProperPre.getProperties("real_source_type_"+mercharnum);
			 real_address=ReadProperPre.getProperties("real_ftp_ip_"+mercharnum);
			 real_local_path=ReadProperPre.getProperties("real_local_path_"+mercharnum);
			 real_fileName=ReadProperPre.getProperties("real_fileName_"+mercharnum);
			 real_dz_date_format=ReadProperPre.getProperties("real_dz_date_format_"+mercharnum);
			 real_dz_date_addday=ReadProperPre.getProperties("real_dz_date_addday_"+mercharnum);
			 real_ftp_port=ReadProperPre.getProperties("real_ftp_port_"+mercharnum);
			 real_username=ReadProperPre.getProperties("real_ftp_username_"+mercharnum);
			 real_password=ReadProperPre.getProperties("real_ftp_password_"+mercharnum);
			 real_remotePath=ReadProperPre.getProperties("real_ftp_filepath_"+mercharnum);
			 //real_source_type,real_address,real_local_path,real_fileName,real_dz_date_format,real_dz_date_addday,real_ftp_port,real_username,real_password,real_remotePath
		}


		return new Main(pre_source_type,pre_address,pre_local_path,pre_fileName,pre_dz_date_format,pre_dz_date_addday,pre_ftp_port,pre_username,pre_password,pre_remotePath,real_source_type,real_address,real_local_path,real_fileName,real_dz_date_format,real_dz_date_addday,real_ftp_port,real_username,real_password,real_remotePath);
		
		
	}
	
}